package com.dgz.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AttributeTemplateUpdateInfoParam implements Serializable {
    @NotNull(message = "修改失败！模板名不能为空！")
    @ApiModelProperty(value = "模板名称",required = true,example = "XXX模板")
    private String name;
    @NotNull(message = "修改失败！模板拼音不能为空！")
    @ApiModelProperty(value = "模板拼音",required = true,example = "xxxMuBan")
    private String pinyin;
    @NotNull(message = "修改失败！模板关键词不能为空！")
    @ApiModelProperty(value = "模板关键词",required = true,example = "关键词1,关键词2")
    private String keywords;
    @NotNull(message = "修改失败！模板序号不能为空！")
    @Range(max = 99,message = "修改失败！模板序号必须为0-99的正整数！")
    @ApiModelProperty(value = "模板序号",required = true,example = "99")
    private Integer sort;
}
